/*
 * @Author: your name
 * @Date: 2021-04-19 09:32:07
 * @LastEditTime: 2021-10-25 16:12:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: /fytsoa_3.1/admin/src/api/cms/article.js
 */
import request from '@/utils/request'
export function getList(params) {
  return request({
    url: 'api/cmsarticle/pages',
    method: 'get',
    params,
  })
}
export function add(data) {
  return request({
    url: 'api/cmsarticle',
    method: 'post',
    data,
  })
}
export function colSort(data) {
  return request({
    url: 'api/cmscolumn/colsort',
    method: 'post',
    data,
  })
}
export function update(data) {
  return request({
    url: 'api/cmsarticle',
    method: 'put',
    data,
  })
}
export function copytransfer(data) {
  return request({
    url: 'api/cmsarticle/copytransfer',
    method: 'put',
    data,
  })
}
export function deletes(data) {
  return request({
    url: 'api/cmsarticle/' + data,
    method: 'delete',
  })
}
export function recycle(data) {
  return request({
    url: 'api/cmsarticle/recycle/' + data,
    method: 'delete',
  })
}
export function getColumn(params) {
  return request({
    url: 'api/cmscolumn/list',
    method: 'get',
    params,
  })
}
